package cn.xin.base.query;

import lombok.Data;

@Data
public class BaseQuery {
    //当前页数
    private Integer currentPage = 1;
    //当前条数
    private Integer pageSize = 5;

    private String keyword;

    //起始页
    public Integer getStart(){
        return (currentPage - 1) * pageSize;
    }
}
